#include <stdlib.h>
#include <wiringPi.h>
struct Devices
{
  char devicesName[128];
  int staus;
  int pinNum;
  int (*deviceInit)(int pinNum);
  int (*open)(int pinNum);
  int (*close)(int pinNum);
  int (*readStaus)(int staus);
  int (*changeStaus)(int staus);
  struct Devices *next;
};
struct Devices *addBathroomLightToDeviceLink(struct Devices *pthead);
struct Devices *addupstairLightToDeviceLink(struct Devices *pthead);
struct Devices *addlivingRoomLightToDeviceLink(struct Devices *pthead);
struct Devices *addrestaurantLightToDeviceLink(struct Devices *pthead);
struct Devices *addfireToDeviceLink(struct Devices *pthead);
struct Devices *addBeefToDeviceLink(struct Devices *pthead);
struct Devices *addlockToDeviceLink(struct Devices *pthead);